
#include "XMLScribe.h"
using namespace std;

//Used for saving
XMLScribe::XMLScribe(Board* b, MoveHistory* history, const char* filename) {

   ofstream scribe (filename);

   scribe << "<chessgame>" << endl;

   b->SaveBoard(scribe);

   history->SaveHistory(scribe);

   scribe << "</chessgame>" << endl;

   scribe.close();
}
